3.336 \(\int \frac {\sec ^2(c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx\)

Optimal. Leaf size=27 \[ -\frac {2 i \sqrt {a+i a \tan (c+d x)}}{a d} \]

[Out]

-2*I*(a+I*a*tan(d*x+c))^(1/2)/a/d

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3487, 32} \[ -\frac {2 i \sqrt {a+i a \tan (c+d x)}}{a d} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^2/Sqrt[a + I*a*Tan[c + d*x]],x]

[Out]

((-2*I)*Sqrt[a + I*a*Tan[c + d*x]])/(a*d)

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rule 3487

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[1/(a^(m - 2)*b
*f), Subst[Int[(a - x)^(m/2 - 1)*(a + x)^(n + m/2 - 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x
] && EqQ[a^2 + b^2, 0] && IntegerQ[m/2]

Rubi steps

\begin {align*} \int \frac {\sec ^2(c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx &=-\frac {i \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+x}} \, dx,x,i a \tan (c+d x)\right )}{a d}\\ &=-\frac {2 i \sqrt {a+i a \tan (c+d x)}}{a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.18, size = 32, normalized size = 1.19 \[ \frac {2 (\tan (c+d x)-i)}{d \sqrt {a+i a \tan (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]^2/Sqrt[a + I*a*Tan[c + d*x]],x]

[Out]

(2*(-I + Tan[c + d*x]))/(d*Sqrt[a + I*a*Tan[c + d*x]])

________________________________________________________________________________________

fricas [A]  time = 0.67, size = 37, normalized size = 1.37 \[ -\frac {2 i \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (i \, d x + i \, c\right )}}{a d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2/(a+I*a*tan(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

-2*I*sqrt(2)*sqrt(a/(e^(2*I*d*x + 2*I*c) + 1))*e^(I*d*x + I*c)/(a*d)

________________________________________________________________________________________

giac [B]  time = 2.00, size = 55, normalized size = 2.04 \[ -\frac {2 i \, \sqrt {\frac {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 i \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - a}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1}}}{a d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2/(a+I*a*tan(d*x+c))^(1/2),x, algorithm="giac")

[Out]

-2*I*sqrt((a*tan(1/2*d*x + 1/2*c)^2 - 2*I*a*tan(1/2*d*x + 1/2*c) - a)/(tan(1/2*d*x + 1/2*c)^2 - 1))/(a*d)

________________________________________________________________________________________

maple [A]  time = 0.20, size = 24, normalized size = 0.89 \[ -\frac {2 i \sqrt {a +i a \tan \left (d x +c \right )}}{d a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^2/(a+I*a*tan(d*x+c))^(1/2),x)

[Out]

-2*I*(a+I*a*tan(d*x+c))^(1/2)/d/a

________________________________________________________________________________________

maxima [A]  time = 0.54, size = 21, normalized size = 0.78 \[ -\frac {2 i \, \sqrt {i \, a \tan \left (d x + c\right ) + a}}{a d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2/(a+I*a*tan(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

-2*I*sqrt(I*a*tan(d*x + c) + a)/(a*d)

________________________________________________________________________________________

mupad [B]  time = 0.16, size = 47, normalized size = 1.74 \[ -\frac {\sqrt {\frac {a\,\left (2\,{\cos \left (c+d\,x\right )}^2+\sin \left (2\,c+2\,d\,x\right )\,1{}\mathrm {i}\right )}{2\,{\cos \left (c+d\,x\right )}^2}}\,2{}\mathrm {i}}{a\,d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(cos(c + d*x)^2*(a + a*tan(c + d*x)*1i)^(1/2)),x)

[Out]

-(((a*(sin(2*c + 2*d*x)*1i + 2*cos(c + d*x)^2))/(2*cos(c + d*x)^2))^(1/2)*2i)/(a*d)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{2}{\left (c + d x \right )}}{\sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**2/(a+I*a*tan(d*x+c))**(1/2),x)

[Out]

Integral(sec(c + d*x)**2/sqrt(I*a*(tan(c + d*x) - I)), x)

________________________________________________________________________________________